home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir39 / anidos.zip / DEMO.ANI < prev    next >
Text File  |  1993-06-29  |  3KB  |  181 lines

  1. ; This is a simple DOS ANIMATOR demonstration script
  2. ; The DOS editor EDLIN.COM must be available
  3. p 26 33 2
  4.  
  5.   >> DOS ANIMATOR V1.2 DEMONSTRATION <<
  6.  
  7.   Copyright (C) Matt Harvey, 1987-1993
  8.      All rights reserved
  9.  
  10.   In this demonstration, DOS is being
  11.   animated from script file "DEMO.SCR"
  12.  
  13.     Press "SysReq" to abort the demo.
  14.  
  15. .
  16. d1
  17. g wait g wait g wait g wait
  18. p $5f 20 16
  19. DOS ANIMATOR allows key depressions to
  20. be played back from a script file, for
  21. animating almost any existing DOS text
  22. mode application.
  23. .
  24. g wait g wait g wait g wait c g wait
  25. t $e 0 23
  26. Here, the DOS command line itself is being animated
  27. .
  28. g wait g wait g wait g wait c g wait
  29. p $71 20 17
  30. DOS ANIMATOR can also be conditionally
  31. controlled by keyboard input or by the
  32. contents of any given screen location.
  33. .
  34. g wait g wait g wait g wait c g wait
  35. "cls" w10 13 w20
  36. "dir" w10 13 ' ' 8 w10
  37. "rem Hello world!" w10 13 w10
  38. "cls" 13 w10
  39. p $5e 16 2
  40. Pop-up windows like these can be
  41. displayed in any colours, anywhere
  42. on the screen, to keep the viewer
  43. informed. This feature allows DOS
  44. ANIMATOR to be used to produce
  45. tutorials or demonstrations.
  46. .
  47. w20
  48. p $1f 10 12
  49.  
  50. Text
  51.  
  52. .
  53. p $2f 12 13
  54.  
  55. Text
  56.  
  57. .
  58. p $3f 14 14
  59.  
  60. Text
  61.  
  62. .
  63. p $4f 16 15
  64.  
  65. Text
  66.  
  67. .
  68. p $5f 18 16
  69.  
  70. Text
  71.  
  72. .
  73. p $6f 20 17
  74.  
  75. Text
  76.  
  77. .
  78. p $7f 22 18
  79.  
  80. Text
  81.  
  82. .
  83. p $8 40 11
  84.  
  85. Text
  86.  
  87. .
  88. p $9 42 12
  89.  
  90. Text
  91.  
  92. .
  93. p $a 44 13
  94.  
  95. Text
  96.  
  97. .
  98. p $b 46 14
  99.  
  100. Text
  101.  
  102. .
  103. p $c 48 15
  104.  
  105. Text
  106.  
  107. .
  108. p $d 50 16
  109.  
  110. Text
  111.  
  112. .
  113. p $e 52 17
  114.  
  115. Text
  116.  
  117. .
  118. p $f 54 18
  119.  
  120. Text
  121.  
  122. .
  123. g cls
  124. p $5f 17 2
  125. DOS ANIMATOR is also interactive, it can
  126. display a pop-up menu, wait for a key to
  127. be pressed, then jump to a labelled part
  128. of the script according to the key that
  129. was pressed. Invalid keys are beeped.
  130. .
  131. w50 d0
  132. t $1e 10 10
  133.  ╓── Example Menu ───┐ 
  134.  ║ A   Add record    │
  135.  ║ D   Delete record │
  136.  ║ F   Find record   │
  137.  ║ Q   Quit         │
  138.  ╚═══════════════════╛
  139. .
  140. w40 g cls
  141. p $71 17 3
  142. Delays of any length can be introduced
  143. to control timing, or keys can be
  144. played back at the maximum rate that
  145. the application can process them. All
  146. delays are independent of the processor
  147. speed.
  148. .
  149. w120 c w10
  150. d0
  151. "rem These keys have been played back at the maximum speed" 13
  152. "rem supported by DOS." 13 c d1 w70
  153. p $1e 12 8
  154. DOS ANIMATOR can save or append any part of the
  155. screen to a disk file, or can write any text to
  156. a disk file. It can also delete any file. This
  157. feature allows animated progams to communicate
  158. with other programs, such as with a Microsoft
  159. Windows "front-end" to a DOS program which is
  160. controlled by DOS ANIMATOR. It is also useful for
  161. automated software testing.
  162. .
  163. w 200 g cls
  164. p $ce 17 4
  165. >> END OF DOS ANIMATOR DEMONSTRATION <<
  166. .
  167. g goodbye g goodbye g goodbye c
  168. p $4e 20 6
  169. Please don't forget to register to
  170. receive your full-featured copy of
  171.  
  172.      >> DOS ANIMATOR V1.2 <<
  173. .
  174. w100 d0 "cls" 13 q
  175.  
  176. ; Subroutines
  177.  
  178. :wait      "WAIT...." 8 8 8 8 8 8 8 8 r
  179. :cls      w100 d0 "cls" 13 d1 w10 r
  180. :goodbye  "GoodBye! " 8 8 8 8 8 8 8 8 8 r
  181.